<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 14-1-23
 * Time: 上午9:05
 * 用户登录后初始化数据(ajax异步请求)
 */
use \pft\Log\Log;
include '../common/autoload.php';
include '../common/func.inc.php';
if(!isset($_SESSION['dataInited'])) {
    $word = date('Y-m-d H:i:s').'|会员ID:'. $_SESSION['memberID'].'登录了';
    Log::writeLog($word, Log::DEV_LOG_PATH);
    $_SESSION['dataInited'] = 1;
    echo '{"status":"ok","msg":"初始化数据成功"}';
}